var exec = require("cordova/exec");
var argscheck = require('cordova/argscheck');

module.exports = {
    getFromCamer: function(data,success) {
		typeof(data) !== 'object' && (data = {});
        typeof(success) !== 'function' && (success = function(mes) {})
        var getValue = argscheck.getValue;

        data.fileType = getValue(data.fileType, "3");

        exec(success,function(mes) {},"VideoPlugin","getFromCamer",[data]);
    },
    getFromPhotoAlbum: function(data,success) {
		typeof(data) !== 'object' && (data = {});
        typeof(success) !== 'function' && (success = function(mes) {})
        var getValue = argscheck.getValue;

        data.fileType = getValue(data.fileType, "3");
        data.maxImages = getValue(data.maxImages, "9");

        exec(success,function(mes) {},"VideoPlugin","getFromPhotoAlbum",[data]);
    }
}
